🎖️GitЯра🎖️
Commit 1e611e0b4d6b3ac61b5d9ba3bb3ba71855f2a3bc
Parents : 4e82e93
Author : James Rich <2199651+jamesarich@users.noreply.github.com>
Signature : Signature validation error
Date : 2026-07-16T07:27:18-05:00
Committer : GitHub <noreply@github.com>
Date : 2026-07-16T07:27:18-05:00
fix: silence false-positive Instantiatable lint on ExtensionAppFunctionService (#6293)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Changes
1 files changed, 12 insertions(+), 1 deletions(-)
Diff
diff --git a/androidApp/src/google/AndroidManifest.xml b/androidApp/src/google/AndroidManifest.xml
index 835daf5596..5a5890ac93 100644
--- a/androidApp/src/google/AndroidManifest.xml
+++ b/androidApp/src/google/AndroidManifest.xml
@@ -83,11 +83,22 @@
<action android:name="android.app.appfunctions.AppFunctionService" />
</intent-filter>
</service>
+ <!--
+ tools:ignore="Instantiatable": lint can't resolve this library-provided service's superclass chain
+ up to android.app.Service. ExtensionAppFunctionService extends the abstract
+ ExtensionsAppFunctionService, whose base is com.android.extensions.appfunctions.AppFunctionService —
+ a class supplied at runtime by the optional "com.android.extensions.appfunctions" <uses-library>
+ (declared android:required="false" in the appfunctions AAR), not by any compile/lint-classpath
+ artifact. Lint therefore can't prove it's a Service and false-positives. The sibling
+ PlatformAppFunctionService is fine because its chain ends in the compile-SDK
+ android.app.appfunctions.AppFunctionService, so the check stays active there and on our own services.
+ -->
<service
android:name="androidx.appfunctions.ExtensionAppFunctionService"
android:enabled="@bool/enableExtensionAppFunctionService"
android:exported="true"
- android:permission="android.permission.BIND_APP_FUNCTION_SERVICE">
+ android:permission="android.permission.BIND_APP_FUNCTION_SERVICE"
+ tools:ignore="Instantiatable">
<property
android:name="android.app.appfunctions"
android:value="app_functions.xml" />
Served by rngit 1.5.2 - Generated in 0.03s